//
//  JCLEmoticonLayout.swift
//  表情键盘
//
//  Created by DDC on 2017/9/27.
//  Copyright © 2017年 DDC. All rights reserved.
//

import UIKit

/// 通过XIB来设置collectionView布局FlowLayout
class JCLEmoticonLayout: UICollectionViewFlowLayout {

    override func prepare() {
        super.prepare()
        
        guard let collectionView = collectionView else {
            return
        }
        // 设置item尺寸
        itemSize = collectionView.bounds.size
        // 设置最小间距
        minimumLineSpacing = 0
        minimumInteritemSpacing = 0
        // 滚动方向
        scrollDirection = .horizontal
        
    }
}
